﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%
    if (Request.IsAuthenticated) 
    {
%>
        <%= Html.ActionLink("__IMG__ " + Page.User.Identity.Name, "Index", "User").ToString().Replace("__IMG__", "<img src='/Content/Icons/user.png' title='" + Page.User.Identity.Name + "' alt='" + Page.User.Identity.Name + "' />") %> &nbsp;
        <%= Html.ActionLink("__IMG__ Búa til sjónvarpsstöð", "Create", "Channel").ToString().Replace("__IMG__", "<img src='/Content/Icons/television_add.png' title='Búa til sjónvarpsstöð' alt='Búa til sjónvarpsstöð' />")%> &nbsp;
        <%= Html.ActionLink("__IMG__ Útskrá", "LogOff", "Account").ToString().Replace("__IMG__", "<img src='/Content/Icons/door_in.png' title='Útskrá' alt='Útskrá' />")%>
<%
    }
    else
    {
%> 
        <%= Html.ActionLink("__IMG__ Innskrá", "LogOn", "Account").ToString().Replace("__IMG__", "<img src='/Content/Icons/door_out.png' title='Innskrá' alt='Innskrá' />")%> &nbsp; 
        <%= Html.ActionLink("__IMG__ Nýskrá", "Register", "Account").ToString().Replace("__IMG__", "<img src='/Content/Icons/new.png' title='Nýskrá' alt='Nýskrá' />")%> &nbsp; 
<%
    }
%>
